#!/bin/sh

if [ -n "`%OPTWARE_TARGET_PREFIX%/bin/pidof radiusd`" ]; then 
    %OPTWARE_TARGET_PREFIX%/bin/killall radiusd 2>/dev/null
fi

if [ ! -d /var/spool/log/radius ] ;  then
    mkdir -p /var/spool/log/radius
fi

%OPTWARE_TARGET_PREFIX%/sbin/radiusd
